package com.atzzy.ysmall.ysmall_api.webScoket;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Author JAVAZeng
 * @Date 2022/4/8 19:45
 * @Version 1.0
 */
@ConditionalOnProperty(name = "spring.profiles.active",havingValue = "dev")
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter getServerEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
